<%@ page import="register.Pet" %>



<div class="fieldcontain ${hasErrors(bean: petInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="pet.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="40" required="" value="${petInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: petInstance, field: 'race', 'error')}  required">
	<label for="race">
		<g:message code="pet.race.label" default="Race" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="race" value="${petInstance?.race}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: petInstance, field: 'colour', 'error')}">
	<label for="colour">
		<g:message code="pet.colour.label" default="Colour" />

	</label>
	<g:textField name="colour" value="${petInstance?.colour}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: petInstance, field: 'owner', 'error')} required">
	<label for="owner">
		<g:message code="pet.owner.label" default="Owner" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="owner" name="owner.id" from="${register.Owner.list()}" optionKey="id" required="" value="${petInstance?.owner?.id}" class="many-to-one"/>
</div>

